import request from "@/utils/request";

export function advice_index(params) {
  return request({
    url: "/advice/index",
    method: "get",
    params
  });
}

export function advice_info(params) {
  return request({
    url: "/advice/info",
    method: "get",
    params
  });
}

export function advice_getList(params) {
  return request({
    url: "/advice/getList",
    method: "get",
    params
  });
}

export function get_header(data) {
  return request({
    url: "/export/exports_info",
    method: "get",
    data
  });
}

// 导出列表
export function export_advice_list(data) {
  return request({
    url: "/export/advice",
    method: "post",
    responseType: "blob",
    data
  });
}

// 导出明细
export function export_advice_detail(data) {
  return request({
    url: "/export/advice_get_list",
    method: "post",
    responseType: "blob",
    data
  });
}

//  采购结算列表 结算列表  详情导出
export function export_advice_detailList(data) {
  return request({
    url: "/export/advice_list",
    method: "post",
    responseType: "blob",
    data
  });
}

export function advice_setStatus(data) {
  return request({
    url: "/advice/setStatus",
    method: "post",
    data
  });
}

// export function advice_setStatus(data) {
//   return request({
//     url: "/advice/setStatus",
//     method: "post",
//     responseType: "blob",
//     data
//   });
// }
